package com.lms.service.impl;

import com.lms.mapper.BorrowRecordsMapper;
import com.lms.pojo.BorrowRecords;
import com.lms.service.BorrowRecordsService;

/**
 * @author: gfk
 * @create: 2021/7/13
 * @Description:
 * @FileName: BorrowRecordsMapperServiceImpl
 * @History:
 * @自定义内容：
 **/
public class BorrowRecordsServiceImpl implements BorrowRecordsService {

    private BorrowRecordsMapper borrowRecordsMapper;

    public void setBorrowRecordsMapper(BorrowRecordsMapper borrowRecordsMapper) {
        this.borrowRecordsMapper = borrowRecordsMapper;
    }

    public int deleteByPrimaryKey(Integer borrowRecordsId) {
        return borrowRecordsMapper.deleteByPrimaryKey(borrowRecordsId);
    }

    public int insert(BorrowRecords record) {
        return borrowRecordsMapper.insert(record);
    }

    public int insertSelective(BorrowRecords record) {
        return borrowRecordsMapper.insertSelective(record);
    }

    public BorrowRecords selectByPrimaryKey(Integer borrowRecordsId) {
        return borrowRecordsMapper.selectByPrimaryKey(borrowRecordsId);
    }

    public int updateByPrimaryKeySelective(BorrowRecords record) {
        return borrowRecordsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BorrowRecords record) {
        return borrowRecordsMapper.updateByPrimaryKey(record);
    }
}
